package com.red.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 旅行笔记评论表
 * </p>
 *
 * @author author
 * @since 2025-03-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("note_comments")
@ApiModel(value="NoteComments对象", description="旅行笔记评论表")
public class NoteComments implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "评论唯一标识")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "关联笔记ID")
    private Long noteId;

    @ApiModelProperty(value = "评论者ID")
    private Long userId;

    @ApiModelProperty(value = "评论正文")
    private String content;

    @ApiModelProperty(value = "小记评论为空 不为空就是评论的ID")
    private Long parentId;

    @ApiModelProperty(value = "评论时间")
    private LocalDateTime time;

}
